<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let i=10;
        while(i-- >0){
            console.log(i);
        }

        for(let i =0;i<10;i++){
            document.write(i);
        }
        console.log("____________________");
        for(let i=10;i>=0;i--){
            if(i%2==0)continue;
            console.log(i);
        }

        console.log("__________________________");
        //打标签的形式
        num1:for(let i=0;i<10;i++){
        num2:for(let j=10;j>0;j--){
            if(j%2==0){
                console.log(i,j);
            }
            if(i+j>10){
                break num1;
            }
        }
        }
    </script>
</body>
</html>